GithubHelp home page GithubHelp logo

alexinea / magic-wand Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 5 KB

Mysterious project, code-named "MagicWand", is a mentor and friend that helps people improve their development efficiency.

License: Apache License 2.0

magic-wand's Introduction

magic-wand's People

Contributors

alexinea avatar

Watchers

 avatar

magic-wand's Issues

[proposal] magic-wand: The vision of this project

Getting or setting object properties or fields is an essential feature in any object-oriented programming language, although the implementation and usage can vary. In the case of C#, is there a way to manipulate objects similar to how dictionaries are manipulated? The answer is yes, and there are several options available, such as FastMember, Leo, Newbee ObjectVisitor, or Cosmos ObjectVisitors.

Here is a brief comparison of these four projects:

  • FastMember is based on IL and does not support .NET Core / .NET Next.
  • Leo is developed based on NCC Natasha and does not support value types, dynamic types, collections, arrays, dictionaries, etc.
  • Newbee ObjectVisitor is implemented based on expression trees but the project has been archived.
  • Cosmos ObjectVisitor supports value types, dynamic types, partially supports collections, arrays, dictionaries, but it only supports .NET 6+ projects and depends on cosmos-stack.
  • Additionally, the L, N, and C projects all have highly complete features such as Repeat and Validate, and it seems that providing implementations as extension packages would be better.

With careful consideration of the comparison results from the aforementioned four projects and taking into account the functional architecture requirements of Project Hana, a new project named "Project Magic Wand" has emerged.

image

Project Magic Wand should offer the following capabilities:

  • It should be backward compatible with .NET Framework 4.6.1 and support NFX/Core/Next,
  • It should support various types, including value types (primitive types and structs), reference types, dynamic types, collections, arrays, and dictionaries,
  • It should enable reading and writing of public/private instance members and static members (properties or fields), as well as reading of read-only members (properties or fields),
  • It should support accessing "nested members" and "members of a collection", and
  • Non-core functionalities like Repeat and Validate should be excluded from the project and left to the community ecosystem for implementation through extension packages.

The aforementioned goals will be progressively implemented and optimized through multiple iterations. We will closely follow and refine the project based on the standards proposed by Cosmos CEP and the requirements and goals expressed by the user group.

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.