Antique Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 2 years ago

Java

lemmy.world

message-square
76
fedilink
528

Java

lemmy.world

alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 2 years ago
message-square
76
fedilink
  • baseless_discourse@mander.xyz
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 years ago

    “predictable” in the sense that people know how it works regardless what language they know.

    I guess I mean “no surprise for the reader”, which is more “readability” than “predictability”

    • BorgDrone@lemmy.one
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      Is there any language that doesn’t just truncate when casting from a float to an int?

      • baseless_discourse@mander.xyz
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        2 years ago

        As far as I know, haskell do not allow coresion of float to int without specifying a method (floor, ceil, round, etc): https://hoogle.haskell.org/?hoogle=Float±%3E+Integer&scope=set%3Astackage

        Agda seems to do the same: https://agda.github.io/agda-stdlib/Data.Float.Base.html

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.15K users / day
  • 4.98K users / week
  • 9.06K users / month
  • 9.16K users / 6 months
  • 1 local subscriber
  • 23.2K subscribers
  • 583 Posts
  • 7.34K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • UI: 0.19.6-beta.7
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org