How does it work? Splash already has to identify all types and properties in order to do syntax highlighting, so I'm simply capturing that data, and then I generate all missing types from it. The editor itself is just an NSTextView + Splash's NSAttributedString output format 
-
-
Prikaži ovu nit
-
Wow, thanks a lot for the amazing feedback on this!

To answer one common question: Yes, this implementation also handles changes to a type or property's name, just like how it updates the generated code when new letters are added to a name
(but still just a prototype
)Prikaži ovu nit
Kraj razgovora
Novi razgovor -
-
-
You should join Xcode team!
-
Should I? That'd require me to shut down Swift by Sundell, stop writing, podcasting and making videos, stop building open source for the community, stop speaking at conferences, and stop sharing prototypes and ideas like this.
- Još 2 druga odgovora
Novi razgovor -
-
-
It’s good I think but need way of turning it off could end up with feature creep. But a very innovative idea
-
Yeah totally. I'm thinking that this would be some form of "API prototyping mode", that lets you design your types and APIs according to how they'll be used - without having to constantly go back and forth between files

- Još 2 druga odgovora
Novi razgovor -
-
-
Nice, does it handle also typos or naming corrections?
-
It does, yeah. At the moment it re-parses the entire document on each change, so it'll always be up to date (but slow for long documents, but hey, it's a prototype
) - Još 2 druga odgovora
Novi razgovor -
-
-
Wooooow! Is this open source?
-
Nope. It's just a prototype that I'm tinkering with from time to time for fun and learning. It's in no shape to be used by others, although working on things like this often ends up informing what I *do* share, through my many open source projects and articles

- Još 3 druga odgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.


Contact me:
So dusted off my Splash-based Swift editor prototype and built a feature that automatically generates models based on how they're being used. What do you think?