i like this programming suggestion twitter.com Submitted by mm_ on April 9, 2018 at 10:55 PM in programming 11 comments 7
voxpoplar wrote on April 9, 2018 at 11:10 PM ok but he suggests all comments should be # when # could be used as a perfectly good operator to get the length of something Permalink 3 Dogmantra wrote on April 9, 2018 at 11:22 PM it's ok because all comments should be written in the format xXx_comment here_xXx Permalink Parent 7 twovests wrote on April 10, 2018 at 12:18 AM holy shit i love this Permalink Parent 6 emma wrote on April 10, 2018 at 12:03 AM # is the hashtag operator, it adds hashtags to your strings Permalink Parent 5 hollyhoppet wrote on April 9, 2018 at 11:33 PM 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 Permalink Parent 3 voxpoplar wrote on April 9, 2018 at 11:35 PM because it's shorthand for number and it would represent the number of items in a list/array/map/whatever Permalink Parent 3 hollyhoppet wrote on April 10, 2018 at 5:46 PM sorry # only means sharp (music notation) and hashtag now it's a Fact Permalink Parent 1 Moonside wrote on April 10, 2018 at 7:10 AM It's also called the number sign Size of a mathematical set S or a group G or whatever is notated as #S or #G. This gets abstracted out into collections of all sorts and the length of a list is equal to the elements it contains. Permalink Parent 2
Dogmantra wrote on April 9, 2018 at 11:22 PM it's ok because all comments should be written in the format xXx_comment here_xXx Permalink Parent 7 twovests wrote on April 10, 2018 at 12:18 AM holy shit i love this Permalink Parent 6
emma wrote on April 10, 2018 at 12:03 AM # is the hashtag operator, it adds hashtags to your strings Permalink Parent 5
hollyhoppet wrote on April 9, 2018 at 11:33 PM 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 Permalink Parent 3 voxpoplar wrote on April 9, 2018 at 11:35 PM because it's shorthand for number and it would represent the number of items in a list/array/map/whatever Permalink Parent 3 hollyhoppet wrote on April 10, 2018 at 5:46 PM sorry # only means sharp (music notation) and hashtag now it's a Fact Permalink Parent 1 Moonside wrote on April 10, 2018 at 7:10 AM It's also called the number sign Size of a mathematical set S or a group G or whatever is notated as #S or #G. This gets abstracted out into collections of all sorts and the length of a list is equal to the elements it contains. Permalink Parent 2
voxpoplar wrote on April 9, 2018 at 11:35 PM because it's shorthand for number and it would represent the number of items in a list/array/map/whatever Permalink Parent 3 hollyhoppet wrote on April 10, 2018 at 5:46 PM sorry # only means sharp (music notation) and hashtag now it's a Fact Permalink Parent 1
hollyhoppet wrote on April 10, 2018 at 5:46 PM sorry # only means sharp (music notation) and hashtag now it's a Fact Permalink Parent 1
Moonside wrote on April 10, 2018 at 7:10 AM It's also called the number sign Size of a mathematical set S or a group G or whatever is notated as #S or #G. This gets abstracted out into collections of all sorts and the length of a list is equal to the elements it contains. Permalink Parent 2
hollyhoppet wrote on April 9, 2018 at 11:20 PM ...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 Permalink 3
musou wrote on April 10, 2018 at 10:32 PM 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. Permalink 2
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