Re:Ivy – An interpreter for an APL-like language
by ducktective on Sunday August 07, 2022 @06:27AM
(#32375357)
Are the `-option` thing in Go CLI apps and method capitalization (`myobject.GetStuff()`) other examples of these idiosyncraticies?
[ Parent
| on HN ]
Re:Ivy – An interpreter for an APL-like language
by coldtea on Sunday August 07, 2022 @04:47PM
(#32379737)
The -option I'd say yes. Although this is vintage UNIX style behavior, in 2009, when Golang emerged, it should have picked GNU-style. No reason except idiosyncrasy or nostalgia to go with single dash.
For method capitalization, I'd say no, as this is the case in any other popular languages too (C# to name but one).
Re:Ivy – An interpreter for an APL-like language
by masklinn on Thursday August 11, 2022 @07:54AM
(#32424323)
The capitalisation itself isn’t idiosyncratic (though it seems uncommon in the unix world), however that having a semantic impact is rather rare.
Not completely unique (e.g. variables v symbols in erlang, concrete type v generic placeholder in haskell) but really rare, and usually the capitalisation isn’t a switchable thing, it’s a very fixed meaning.