Git Product home page Git Product logo

crystal-by-example's Introduction

Hi there ๐Ÿ‘‹

crystal-by-example's People

Contributors

amitsaha avatar askn avatar beyazatli avatar dougeverly avatar greenbigfrog avatar hugoabonizio avatar jkthorne avatar l3kn avatar mjago avatar renich avatar sametaylak avatar tzekid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crystal-by-example's Issues

Example JSON

result = String.build do |io|
io.json_object do |object|
object.field "address", "Crystal Road 1234"
object.field "location" do
io.json_array do |array|
array << 12.3
array << 34.5
end
end
end
end

Error: undefined method json_object for String::Builder

Example Abstract

class Foo
abstract def foo
end

Compiler now complains: Error: can't define abstract def on non abstract class

Cheers,
Ivo Balbaert

Example for the Logger

Can we get an exaple for the logger class? I could create one, but I'm not sure about the .format= option (Thats why I'm here, anyway)

Are there exceptions handling examples?

  • default error class for rescue
  • Interrupt Ctrl+c example
  • Would be nice to see diffs w/Ruby error hierarchy (StandardError vs Exception vs RuntimeError, Interrupt ctrl+c, etc)

Example Channel select

Line ch1 = generator(1)
now (Crystal 0.20) gives the Error: instantiating 'generator(Int32)', undefined constant T.

How should this be corrected?
Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.