Samuel Kurtzer
Samuel Kurtzersdk@infosec.exchange
2025-05-22

@vincent you can get a quick overview of why you can't just impl display for Result from the first couple minutes of this video: youtu.be/qrf52BVaZM8

Samuel Kurtzersdk@infosec.exchange
2025-05-22

@vincent alternatively it might be possible make a newtype that can do what you want that just wraps result. Don't have time for that example ATM though

Samuel Kurtzersdk@infosec.exchange
2025-05-22

@vincent unwrap will remove the result type and make it either the Greek number or panic and crash the program.

The simple solution is something like this

Samuel Kurtzersdk@infosec.exchange
2025-05-22

@vincent Ah I thought you could impl for structs with generics defined inside crates, my bad.

That means you won't be able to display the result nicely, you'll need to match the result and display its contents without the displat trait.

Samuel Kurtzersdk@infosec.exchange
2025-05-22

@vincent can't compile that ATM but looks like the contents of the result do implement display but the result itself doesn't. Try adding a
`````impl fmt::Display for Result<Greek, error>
And just match the result case and use the display implemented for that case

Samuel Kurtzersdk@infosec.exchange
2025-05-22

@vincent does the explicit result<Greek, err> impl? Have you included the impl location?

Samuel Kurtzersdk@infosec.exchange
2025-05-20

@Tourma you could use anubis.techaro.lol/. Captcha seems to be bypassable at this point.

Samuel Kurtzersdk@infosec.exchange
2025-05-04

@stevenaleach short term #solarpunk is my best guess.

Samuel Kurtzer boosted:
Haskell Weeklyhaskell_discussions
2025-04-17
Samuel Kurtzersdk@infosec.exchange
2025-04-14

@SeanOMik @xenacool one other thing to consider is who is going to be writing the plugins/scripts. General users will be better served by Lua because it's relatively simple. Software devs on the other hand will appreciate being able to work in their favourite language.

Samuel Kurtzersdk@infosec.exchange
2025-04-13

@SeanOMik wasm is really good for plugins and scripts for the cross codebase stuff that you mention. It really lowers the barrier to other developers.

Samuel Kurtzersdk@infosec.exchange
2025-04-12

@anubis2814 you handled that well

Samuel Kurtzersdk@infosec.exchange
2025-04-05

@mqsalmon gotta wonder if they're trying to bolster they're position from both liberals thinking about voting teal and green voters looking for a more moderate alternative switching to teal

Samuel Kurtzer boosted:
nixCraft 🐧nixCraft
2025-03-29

Fun poll: Have you ever accepted that 'magic' is a perfectly good explanation for why something works in your code base? Asking for a friend.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst