@fasterthanlime @simon @yosh @poliorcetics Sure - but this is a pattern I use in TypeScript as well which allows anonymous structs as function returns. In this case the restriction in Rust made me a better TS engineer, so it goes both ways. I would definitely agree with you in other contexts (like passing structs as parameters in C being messy meaning that people think it's an undesirable thing in general)
cyberia@tilde.zone
Posts
-
I am NOT making a Rust replacement, but — if you could fix one* thing about Rust syntax/semantics/etc. -
I am NOT making a Rust replacement, but — if you could fix one* thing about Rust syntax/semantics/etc.@fasterthanlime @simon @yosh @poliorcetics ha, I think it's a pretty useful prompt that the code is getting messy and could be refactored, but sure
-
I am NOT making a Rust replacement, but — if you could fix one* thing about Rust syntax/semantics/etc.@simon @yosh @poliorcetics @fasterthanlime yeah, often I find that if I'm returning multiple values from a function, either the thing returned is a useful grouping elsewhere in the program and therefore deserves a name, or the function is overburdened and can be split up
-
I am NOT making a Rust replacement, but — if you could fix one* thing about Rust syntax/semantics/etc.@fasterthanlime I think I'd allow anonymous structs/enums. Often I find myself reaching to create an enum field inside a struct and it's annoying having to make a whole separate named declaration for it.
-
A new twist in the "AI license laundering of chardet" story https://github.com/chardet/chardet/issues/327@cwebber and I suspect that if you made an LLM based on the specific code as training data, a court would probably rule differently to how they have ruled about LLM generated code in other cases. maybe.
-
A new twist in the "AI license laundering of chardet" story https://github.com/chardet/chardet/issues/327@cwebber Well, the maintainer's point was that this is "clean room", by which they mean Claude was not given the existing codebase as input. The counter argument is that the existing codebase almost certainly forms part of Claude's training data, so the claim of it being genuinely clean room is bogus. So to make your idea work, you'd have to use the proprietary codebase as training data, rather than prompt input.
-
When someone says „Scientists do not want you to know“ you can dismiss everything from there on.