• 0 Posts
  • 8 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle




  • I always see comments like these online, but they seem kind of absurd to me, coming from a country where it’s not only totally common to walk dogs off-leash, but completely legal. There’s really very few incidents of dogs darting into the streets here, and actually half the ones I’ve ever seen have been dogs on a lead anyway. A well trained dog doesn’t do that.


  • "1" + 2 === "12" is not unique to JS (sans the requirement for the third equals sign), it’s a common feature of multiple strongly typed languages. imho it’s fine.

    EDIT: I did some testing:

    What it works in:

    • JS
    • TS
    • Java
    • C#
    • C++
    • Kotlin
    • Groovy
    • Scala
    • PowerShell

    What produces a number, instead of a string:

    • PHP
    • SQL
    • Perl
    • VB
    • Lua

    What it doesn’t work in:

    • R
    • C
    • Go
    • Swift
    • Rust
    • Python
    • Pascal
    • Ruby
    • Objective C
    • Julia
    • Fortran
    • Ada
    • Dart
    • D
    • Elixir

    And MATLAB appears to produce 51, wtf idk