notinstead of the more common
x: int = 3and I personally just prefer that over
int x = 3, though I can't really explain why.
->operator, which I also really like.
!characters as suffixes for function names to denote some meanings.
?at the end of a function name indicates that the function returns a boolean.
!at the end of a function name indicates, according to the Ruby documentation, that the method is potentially dangerous. This tends to mean that it performs something in place. It is common for there to be pairs of methods, such as
.sort!for arrays. Without the
!character, the method will return a copy of the original array that was sorted, but with the
!, the calling array will be modified internally instead.
<operator for denoting inheritance of classes.