Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 9113

Rust is a systems programming language focused on three goals: safety, speed, and concurrency. It maintains these goals without needing a garbage collector, making it a useful language for a number of use cases other languages aren't good at: embedding in other languages, programs with specific space and time requirements, and writing low-level code, like device drivers and operating systems.

2 votes

Is there a distinct optional type semantically representing a value that *needs to be calcul...

Yes, sort of. It is part of almost any major programming language: it is called a first-class function. Instead of passing a specific value v, one passes a function f around which can calculate v on d …
Doc Brown's user avatar
  • 214k
10 votes

(How) can the circle-ellipse problem be solved by using composition rather than inheritance?

"Composition over inheritance" for the Circle-Ellipse problem means to implement a class Circle by making internally use of an Ellipse object, like this: class Circle { Ellipse e; publi …
Doc Brown's user avatar
  • 214k
2 votes

How to design a good generic tiled image downloader?

should do the trick - functional tools to the rescue: Implement your core downloader not in terms of a list of URLs, but in terms of a stream (or generator) of URLs (I did not do this in Javascript or Rust
Doc Brown's user avatar
  • 214k