News for hackers. Stuff that matters.
Re:Kotlin: A statically-typed language that compiles to JVM ... by cdcarter on Sunday November 10, 2013 @04:31PM (#6708533)
! in ruby means "dangerous", which is actually poorly defined. In some major libraries it is used to mean exception raising, in some it means self-mutation.

  The bang (!) does not mean "destructive" nor lack of it mean non
  destructive either.  The bang sign means "the bang version is more
  dangerous than its non bang counterpart; handle with care". Since
  Ruby has a lot of "destructive" methods, if bang signs follow your
  opinion, every Ruby program would be full of bangs, thus ugly.
-matz

There are no comments on this comment yet.