Post AtIXiRC9FR9pJvZas4 by [email protected] | |
More posts by [email protected] | |
Post #AtIWxm65iSLIXNUPHU by [email protected] | |
0 likes, 0 repeats | |
python 3.12 match statement makes it really easy to write ad-hoc option parsers… | |
Post #AtIXKU66nwxvNAKImu by [email protected] | |
0 likes, 0 repeats | |
@whitequark oh that's actually like. really nice and declarative, dang | |
Post #AtIXKUC8RXmnfr97BI by [email protected] | |
0 likes, 0 repeats | |
@alterae right?? it's kinda cute. and incredibly compact | |
Post #AtIXR357eD0bbxzlFw by [email protected] | |
0 likes, 0 repeats | |
@whitequark wow i didn’t know modern python could be this nice(shouldn’t `-… | |
Post #AtIXdcOCCU8MahuUdc by [email protected] | |
0 likes, 0 repeats | |
yes yes i fucked up. this needs a while loop or something | |
Post #AtIXiRC9FR9pJvZas4 by [email protected] | |
0 likes, 0 repeats | |
@whitequark or name the iterator and call next() on it for --triple? | |
Post #AtIYPXhkv861xiuZ6W by [email protected] | |
0 likes, 0 repeats | |
@whitequark Looks like Swift, except in Swift, you rather link a 6MB big argume… | |
Post #AtIZ3cdQ0gAcpszgqe by [email protected] | |
0 likes, 0 repeats | |
@simon ... excellent idea | |
Post #AtIZ56yWgrifDzZqWO by [email protected] | |
0 likes, 0 repeats | |
@simon actually no that won't work because you need lookahead | |
Post #AtIZ8v40v2KtRLxYq8 by [email protected] | |
0 likes, 0 repeats | |
@helge or Rust! yeah | |
Post #AtIbvvOmf69SZqAbM8 by [email protected] | |
0 likes, 0 repeats | |
@whitequark Nahh it'll work | |
Post #AtIhK6NlyZD5Ma2qnY by [email protected] | |
0 likes, 0 repeats | |
@whitequark ugh modern python in my day we justed a dict for control flow | |
Post #AtIkjgpftO0zVrzMWW by [email protected] | |
0 likes, 0 repeats | |
@whitequark What I really like is matching directly object or property types in… | |
Post #AtIntnjjNSvRgTinqq by [email protected] | |
0 likes, 0 repeats | |
@whitequark I just use typer. Good enough. | |
Post #AtUPqSuWHkaFDoACiu by [email protected] | |
0 likes, 0 repeats | |
@whitequark i had an idea... and yup | |
Post #AtUhW8OQeqv4yFbn1s by [email protected] | |
0 likes, 0 repeats | |
@whitequark now i wonder if you can subclass list to make it not quadratic | |
Post #AtUhW8VAFoJ7J8lAWm by [email protected] | |
0 likes, 0 repeats | |
@dramforever oh this is cute |