|
|
|
|
|
by sk5t
1733 days ago
|
|
> I think if the Scala creators had been a bit less obsessed with symbology This might not be something to pin on the language designers, if you're using certain third-party libraries. Indeed it is possible to name a method pretty much whatever you want, with some constraints[0]. Wanna call it "!^"? Go ahead! But, this is afoul of the naming convention in many cases[1]--acknowledging that the convention may have previously been a bit more lax in this regard. OTOH the distinction between "::" and ":::", and the implications of stuff like "<:" often do require a refresher if they're not part of one's day-to-day. [0] https://stackoverflow.com/questions/7656937/valid-identifier...
[1] https://docs.scala-lang.org/style/naming-conventions.html |
|
If the language designers allow methods named "!^", then someone will actually name a method "!^".