smart-rb / smart_types Goto Github PK
View Code? Open in Web Editor NEWA set of objects that acts like types (type checking and type casting) with a support for basic type algebra.
License: MIT License
A set of objects that acts like types (type checking and type casting) with a support for basic type algebra.
License: MIT License
Need to docuemnt the behavior of runtime_attributes
and their definitioning (it requires the type.runtime_attributes_checker
to be defined inside the type definition block in order to add the ability of their usage)
intialize_clone
is a public method in MRI, but private
in truffleruby. access level identifier should be explicitly defined inside initialize_clone
module host in lib/smart_core/types/primitive/factory/runtime_type_builder.rbinitialize_dup
and intialize_copy
methods tooTruffleRuby's initialize_clone
implementations and use cases:
https://github.com/oracle/truffleruby/search?q=initialize_clone
ArgumentError: wrong number of arguments (given 1, expected 2)
from /Users/exclusive/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/smart_types-0.7.1/lib/smart_core/types/primitive/sum_factory.rb:17:in `create_type'
For example:
SmartCore::Types::Variadic::ArrayOf(SmartCore::Types::Value::Text)
hey @0exp, thanks for nice gem
Sometimes I need to create a temporary type that I don't want to put in the class tree, what you think about it?
Subject
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.