You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method currently used for describing how to use annotations can be easy to understand at times: ---@type <type>
And also impossible for mere mortals to understand: ---@cast <value_name> [+|-]<type|?>[, [+|-]<type|?>...] ---@overload fun([param: type[, param: type...]]): [return_value[,return_value]]
There must be a better way to represent these more complex syntaxes while also not using symbols regularly in use (<, >, (, ), [, ], {, }, @, #, -, +, =, :, ", ,, ., ?). Although now that I have listed some in-use symbols, I realize we really are quite limited. It is hard to explain a syntax that uses many symbols… using symbols.
I'm open to any suggestions on how this can be improved 🙂
The text was updated successfully, but these errors were encountered:
Maybe using colors to differentiate between placeholders and real syntax?
It doesn't have to just be colors, a hover card describing possible example values could also help.
My initial thought was to use colours, but there could be issues then with colourblind users. I think I'll give it a try using iWantHue and see how it looks.
The method currently used for describing how to use annotations can be easy to understand at times:
---@type <type>
And also impossible for mere mortals to understand:
---@cast <value_name> [+|-]<type|?>[, [+|-]<type|?>...]
---@overload fun([param: type[, param: type...]]): [return_value[,return_value]]
There must be a better way to represent these more complex syntaxes while also not using symbols regularly in use (
<
,>
,(
,)
,[
,]
,{
,}
,@
,#
,-
,+
,=
,:
,"
,,
,.
,?
). Although now that I have listed some in-use symbols, I realize we really are quite limited. It is hard to explain a syntax that uses many symbols… using symbols.I'm open to any suggestions on how this can be improved 🙂
The text was updated successfully, but these errors were encountered: