Skip to content
0
  • Home
  • Piero Bosio
  • Blog
  • World
  • Fediverso
  • News
  • Categories
  • Old Web Site
  • Recent
  • Popular
  • Tags
  • Users
  • Home
  • Piero Bosio
  • Blog
  • World
  • Fediverso
  • News
  • Categories
  • Old Web Site
  • Recent
  • Popular
  • Tags
  • Users
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
martok@mstdn.socialundefined

Martok

@martok@mstdn.social
About
Posts
2
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

View Original

Posts

Recent Best Controversial

  • CS people what do you call // ?
    martok@mstdn.socialundefined martok@mstdn.social

    @jhominal Only if both arguments are int. If either is float, the result is float even if its value is by definition int-ish.

    I still think this violates the Principle of Least Astonishment, that's why I just don't use it anymore. int(a/b) is not that much more typing.

    Uncategorized

  • CS people what do you call // ?
    martok@mstdn.socialundefined martok@mstdn.social

    @futurebird I used to call it integer division until I learned that at least in Python it doesn't actually return an int.
    Now I just call it The Thing That Looks Like It Does What I Need But Better Stay Away From.

    Uncategorized
  • Login

  • Login or register to search.
  • First post
    Last post