Useless instructions: Difference between revisions

m
Line 209:
The five core builtin types form a natural hierarchy, so you can store an integer in a variable declared as
an integer or a number (aka atom), the latter in an object, and a string in a string or a sequence, and the
latter in an object. StoringSo, theapart contentsfrom oferror anreporting, objectyou indon't (say)actually anneed integerany maydata eithertypes workother just fine, orthan "object".<br>
trigger a fatal runtime crash - you can use pretty obvious "if integer(o) then" tests before doing that.
So, apart from error reporting, you don't actually need any data types other than "object".<br>
Phix supports at least 45 different ways of expressing the same simple integer value, from binary to base 36,
and that is before even considering string versions of it. For instance there is no difference whatsoever
Line 231 ⟶ 229:
One genuinely redundant feature which has since been redacted was "{a, b, c} @= x", where the "@=" was meant to
stand for "all become equal to". Technically it just about worked when x was a literal integer, but was badly
broken in almost every other sense, and from the 0 bug reports clearly had never been used in the real world.
 
=={{header|Raku}}==
7,818

edits