Hacker News new | past | comments | ask | show | jobs | submit | nitroll's comments login

The trackpoint on Thinkpads is fantastic once you get used to it.


But isn't that pretty much the distinction between value and reference types?


thats where my comment stems from: reference or value expextations are core to a language's behavior, if those cant be relied upon....


https://fr.wikipedia.org/wiki/Grave_(titre) somewhat equivalent of count or earl


My solution was to close the tab...


In Python you could do something like:

  class Base:
     def func(self):
         print("In Base.func:", self.name)
  
  class Child:
     def __init__(self, name):
         self.name = name
     func = Base.func
  
  c = Child("Foo")
  c.func() #=> In Base.func: Foo


The reason I'd like the construct is because it's explicit - intent (and the scope/limit of your intent) is encoded in what you create. It's clear you intend to do nothing with that name except symlink to the nested member, so the reader doesn't have to anticipate other behaviour (and can't accidentally do something else with it). Generic assignment doesn't convey the same restricted intent, and it doesn't carry those guard rails.

Really though it's a structure that only makes sense in strongly typed languages, so I probably shouldn't have used Python to illustrate the idea.


Most alarms wake you at a certain time, not a certain location.


Actually it seems sum is special cased to fail for strings, but otherwise you are correct


One big reason is that ubuntu splits out venv into its own package basically "breaking" python. People then don't know about the venv module and continues using the virtualenv, both due to this preceding venv, and because that is usually the word used to describe the concept.


Like which nu | xargs dirname


No, you need an editor that abstracts away the indentation and uses the existing style of the file. I use the tab key to indent code, my editor (Emacs) is configured to just cycle through sane choices.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: