@[email protected] to Engineering [email protected]English • edit-24 months agoGet Datedlemmy.dbzer0.comimagemessage-square53fedilinkarrow-up1676
arrow-up1676imageGet Datedlemmy.dbzer0.com@[email protected] to Engineering [email protected]English • edit-24 months agomessage-square53fedilink
minus-square@[email protected]linkfedilinkEnglish3•edit-24 months agofunction validate(val) try: cast val as numeric except: print "Oops, not a number" cast val as general ## date or whatever end validate(12.5) ## returns 12.5 validate("12.5") ## returns 12.5 validate("12 . 5") ## returns a date maybe
minus-square@[email protected]linkfedilinkEnglish3•edit-24 months agoOh my god what cursed Python, Lua, and SQL offshoot is this
Oh my god what cursed Python, Lua, and SQL offshoot is this
It’s my own grammar, “Luanatic”