Comments

You must log in or register to comment.

3

voxpoplar wrote

ok but he suggests all comments should be # when # could be used as a perfectly good operator to get the length of something

5

emma wrote

# is the hashtag operator, it adds hashtags to your strings

3

hollyhoppet wrote

how does # mean length of something?

Personally if I were to choose something for comments i'd say -- is pretty good but then again i have a huge soft spot for ada

3

voxpoplar wrote

because it's shorthand for number and it would represent the number of items in a list/array/map/whatever

2

Moonside wrote

  1. It's also called the number sign
  2. Size of a mathematical set S or a group G or whatever is notated as #S or #G.
  3. This gets abstracted out into collections of all sorts and the length of a list is equal to the elements it contains.
3

hollyhoppet wrote

...huh

The worst part is as far as I can tell the use of ** for exponent predates the use of // for comments so yeah what the heck

2

musou wrote

i guess i'm on the opposite end of that scale, i kinda wish we didn't use slashes for operators at all. sometimes i get confused by which direction the slash is going.