bad language design ideas I just made:
assignment sometimes means the same thing as array.append
bad language design ideas I just made:
assignment sometimes means the same thing as array.append
it's because the format of a flag is like:
$variable="value"
$variable2=#FF00FF
shape{
$color
}
but one of the special variables is the "name" and a flag can have multiple names. So... you just assign the variable more than once! and it remembers all of them!
this is because things like the classic rainbow flag are known as "gay", "rainbow", and "rainbow1979"
it may be the first language where "thick" is a reserved word, though
@foone ah, perl-like semantics
@jes5199 good point. I'll change it.
OH ALL RIGHT I took out the magic syntax for assignment vs array.append.
it just makes lists slightly more complicated now. So instead of:
$name="gay"
$name="rainbow"
$name="rainbow1979"
you now write:
$name=["gay", "rainbow", "rainbow1979"]
it just required ONE person to accuse this of being "perl-like semantics" to shame me into changing the language.
@uss_oatmeal I think that's just true of all python programmers
Mental note: Foone's weakness is Perl based mockery.
thankfully my flag design language isn't turing complete.
(other than how all my creations are turing complete, because I'm named Turing)
otherwise I might be tempted to port Doom to a gay pride flag.
(I still have a project to do the opposite, but I haven't gotten back around to it)
@foone I don't know about your projects, but none of mine are ever complete
@ckape being Turing Complete is the only way I can complete anything, it's true
I turned my temporary notes into a wiki page, in case anyone wants to read 'em:
@foone Practical Flag Rendering Language
@indigoparadox don't be silly. it's not that practical.
@A_C_McGregor ahh, good catch. Both are true, just in different context (black is pre-defined in the hardware palette, but black & white are predefined as variables), so I should rewrite that to make it more clear
@foone you say at one point that there's only one pre defined colour (black), and then later have two (black & white)
Also I have to wonder how it would react the Hexadecimal colours
@david definitely a good idea, and something I'll work on once the software is more functional
@foone it would be nice if the examples also included a screenshot of the result
@mctwist YIKES
@foone Reminds me of how #TorqueScript handles "lists":
$var1 is the same variable as $var[1].
Every variable name is a string. There are no lists, you simulate them through string concatenation. Numbers are converted to strings automatically.
Updated the page based on some feedback from @fschulze:
Triangle and Quad have been dropped (since they can be trivially replaced by Polygon), and Star has been dropped because Polygon now has the ability to translate polygon definitions before drawing them. So instead of having a universal "Star" command, the one flag that needs them (Brazil!) will just define its own stars
@foone CSS has "thick" as a valid value for border-width. Sorry.
@crobbler DAMN!
I guess I'll have to rename it "thicc" to maintain my originality
@crobbler @fschulze @flagbot
Flagbot is neat. I've thought about jokingly making a pride-flag-generator, given how many pride flags are just 3-8 vertical stripes.
Pick some random colors, and you've got a flag!
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.