Log inSign up
Anton Zhiyanov
2,709 posts
Anton Zhiyanov profile banner
@ohmypy

Anton Zhiyanov

@ohmypy
Maintainer at github.com/nalgeon. Author at antonz.org
antonz.org
Joined March 2013
39
Following
8,162
Followers
RepliesRepliesRepostsRepostsMediaMedia

Log in or sign up for X

See what’s happening and join the conversation

Continue with phone
or
Log in with username or email
Terms·Privacy·Cookies·Accessibility·Ads Info·© 2026 X Corp.
  • Pinned
    @ohmypy
    Anton Zhiyanov
    @ohmypy
    Mar 21
    Could Go be a better C? I think so! Meet Solod — a strict subset of Go that translates to C, without hidden memory allocations and with source-level interop.
    Image
    Solod: Go can be a better C
    From antonz.org
    16
  • @ohmypy
    Anton Zhiyanov
    @ohmypy
    Sep 2
    This esteemed function in Go's standard library reads the mantissa and exponent from a string and returns seven individual values. I guess someone really hated structs, huh 🫠
    Image
    1
  • @ohmypy
    Anton Zhiyanov
    @ohmypy
    Aug 31
    This Go expression is a bit unconventional, but it's completely valid: error.Error(errors.ErrUnsupported) "errors.ErrUnsupported" is a real, though less well-known, error value defined in the errors package. "error" is a real interface type, and "Error" is its method. And
    Image
    1
  • @ohmypy
    Anton Zhiyanov
    @ohmypy
    Aug 30
    What do you think of this Go expression? error.Error(errors.ErrUnsupported)
    🚫 errors.ErrUnsupported17.2%
    🚫 error.Error31%
    😱 It panics12.1%
    👌 It's totally fine39.7%
    58 votesFinal results
  • @ohmypy
    Anton Zhiyanov
    @ohmypy
    Aug 29
    I have no idea why developers hate examples so much. Sometimes, I'll see a Go proposal discussion with 50 comments where people argue back and forth, but no one gives a single example about what they're talking about. To me, that's just crazy — these kinds of discussions go
    Image
    Try X in Y minutes
    From antonz.org
    10
Advertisement
Advertisement