News for hackers. Stuff that matters.
Re:Why Go and Not Rust? by johnlinvc on Tuesday September 17, 2019 @02:36AM (#20992289)
Not exactly the same, since there's no UInt8 in Ruby.

    require 'sinatra'
    get %r{/hello/([^/]+)/(\d+)} do |name, age|
      "Hello, #{age} year old named #{name}!"
    end
Re:Why Go and Not Rust? by qaq on Tuesday September 17, 2019 @02:49AM (#20992370)
I am guessing age would be a string though?
Re:Why Go and Not Rust? by johnlinvc on Tuesday September 17, 2019 @03:12AM (#20992495)
yes, the regex part handles the validation.