18
sleek
19d

Every function in any library in Go because it starts with a capital letter

Comments
  • 3
    i kinda like it, makes it easy to see if they are to be internal or imported functions. Os your dislike aesthetic?
  • 3
    @AleCx04 i have a bad habit of forsaking a language just coz i dislike aesthetic
  • 1
    They're capital because Go encodes visibility in the name, though. Uppercase => public, lowercase => private
  • 1
    @12bitfloat I'd have liked the visibility thing to be like Python.

    public()
    _protected()
    __private()

    But then, I'm no Google and these are personal aesthetics.
  • 1
    @sudo-compile Both are pretty bad imo. Why not just a short `pub`. Then you aren't forced into any particular naming convention
  • 1
    @12bitfloat yeah rust is the modt beautiful i found so far
  • 0
    @sleek Also pretty flexible with `pub(in some::other::module)` and stuff like that
Add Comment