Comments (6)
Interesting idea. You are talking about Go specifically, right? Why not embed the serializable as follows?
type Mixed struct {
ColferStructX
NonSerializable string
}
This way it is clear from the API which fields are serialized.
from colfer.
Yes just Go, embedding works but makes initialization slightly less nice. Also struct tags.
from colfer.
Such a language specific feature just to make initialization slightly more nice sounds like a very bad deal. 😉 What about struct tags?
from colfer.
Not outputting struct definitions would make it possible to use struct tags.
from colfer.
There's more ways to add a tag to a struct. Sounds like a useful feature indeed. Another issue though. I'm closing this one for now. Feel free to reopen with a good reason.
from colfer.
Pull request #67 provides tags @khlieng.
from colfer.
Related Issues (20)
- Document limitation: Only 126 fields, ever, no removing HOT 7
- Backwards compatibility with version 1
- Suggestion: Continuous Fuzzing HOT 1
- [Feature request] publish colfer JS to npmjs.com HOT 2
- Will colfer support uint32/uint64 list in the future? HOT 1
- Suggestion:add the -o parameter and specify the output file name. HOT 3
- BufferOverflowException in writeObject HOT 8
- Document uint16 better. HOT 6
- Document UTF-8 Conversion in Spec + Simplify marshall/unmarshall Implementations. HOT 9
- Define Null-able types in some languages HOT 4
- Generated code doesn't compile with "illegal start of expression" HOT 1
- about compatibility, can you support adding a new field into the middle structure in the stream ? HOT 3
- colf for windows - stack exceeded HOT 1
- Dart support HOT 5
- Big Decimal Support HOT 6
- Empty structs generates invalid Go code HOT 4
- Generate schema from Kotlin code HOT 4
- Bit Field Handling HOT 11
- Java String Performance 🐌
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colfer.