TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Types for an Untyped World: Bracha vs. Felleisen [video]

57 pointsby namarkivalmost 10 years ago

3 comments

stcredzeroalmost 10 years ago
Off the cuff comment, just before I go to watch the video: Here&#x27;s something that Smalltalkers didn&#x27;t like to talk about during the height of the Java vs. Smalltalk flamewars of the late 90&#x27;s&#x2F;early 2000&#x27;s -- To be a good production Smalltalk programmer, you had to be very mindful of &quot;types.&quot; (Reason for quotes!)<p>Exactly what do I mean by this? The good Smalltalkers would code in a such a way, that people could rapidly and completely figure out what &quot;type&quot; was in every variable, and reliably keep track of all implicit &quot;Interfaces.&quot;<p>So of what value was Smalltalk, if you had to do all that manual work? The fact that what would be &quot;types&quot; in other languages were handled as conventions. This made exploratory coding very rapid.<p>This is also why I appreciate Go&#x27;s pragmatic language design around this issue: The compiler keeps track of these things for you, but doesn&#x27;t require nearly as much bookkeeping from the programmer to have that happen.<p>Now to see what Mr. Bracha has to say.<p>(Note: Conventional Smalltalk is actually strongly typed. It&#x27;s just that everything is typed &quot;Object&quot; and exceptions are more or less just normal program execution with one VM built-in to get it started. This is why what other languages would consider &quot;types&quot; are really just conventions.)
toolslivealmost 10 years ago
Feels like a &quot;Live at the Apollo for Computer Scientists&quot;
octaveguinalmost 10 years ago
This is a boring, uninteresting debate on an interesting topic.<p>I&#x27;m sure HN has much more to say in much less time about it.<p>Types help document code such that I&#x27;d prefer an optional typed languages wherein libraries and large code bases are expected to be typed but the glue on top doesn&#x27;t need to be.<p>Javascript in particular is not very self documenting but I find typescript much easier to read. It&#x27;s a real shame it&#x27;s not often adopted if only to provide IDE hints.
评论 #9909455 未加载