how can they justify this?
>>59578680
by using a clearly defined set of rules. Oh look, they did. So you're point, and your thread, and probably you, are worthless.
>>59578698
>So you're point, and your thread, and probably you, are worthless.
>getting this emotional over a language criticism
I hope you find a good therapist my man
>>59578680u"thing" == "thing"
False
Isn't this what every sane language does
? Double quotes for strings, single for characters
>>59578680
it says it right there you retard.
>>59578858
They all have mechanisms in place, some of those mechanisms are purely OOP though.
>"String literal" || 'string literal'
>new String("not literal")
>>59578879
i asked how do the justify it not what they mean, should've finished 1st grade my man
>>59578858
except they dont use single quotes for characters but rather as a fucked up string type and you cant compare the two lmao
It runs on BEAM and not the JVM
that alone makes it a super meme.
>>59578900
the justification is that they need different symbols to represent different things, idiot.
>>59578798php > $var = "faggots";
php > echo "hi $var";
hi faggots
php > echo 'hi $var';
hi $var
php > $a = "hi $var";
php > $b = 'hi $var';
php > echo ($a === $b ? "true" : "false");
false
>>59579163
PHP is a special needs case.
>>59578680
Well, I suppose char lists and strings are different data structures, and the difference is noted in the "Binaries, strings and char lists" chapter.
>>59579163
>using PHP as base case
Opinion discarded. PHP is the epitome of bad language design. They designed an HTML templating solution first, and then wrapped a full shitty language around it.
>>59578900
Is your criticism simply to do with the syntax, or the fact that they have a type for char lists and a type for strings?
string == char[x]
false
>>59578680
http://elixir-lang.org/getting-started/binaries-strings-and-char-lists.html
Read the doc again, you retard. You clicked on it and still made the thread, It only show us how clueless you are, stop programming right now and kys.