Giter VIP home page Giter VIP logo

Comments (4)

lihaoyi avatar lihaoyi commented on July 17, 2024

That would be cool!

I'm for just getting rid of Symbols entirely; I don't think we really gain much by using them over strings.

One thing to note is that scala-xml is being ripped out of the standard library in 2.11, so even if it works now it's gonna stop working in a few months when 2.11 comes out. It's also a pretty massive dependency for what we're using it for (i.e. basic serialization).

If you could add, in addition to the existing def toXML(): NodeSeq, a useful/performand def toString(): String to serialize the nodes to HTML without passing through scala-xml then i'd happily merge it in =)

from scalatags.

Peluko avatar Peluko commented on July 17, 2024

Well, I think that I will need scalatags for a long time, so eventually I should make any necessary changes to keep it working. As soon as I have some spare time I will rip the symbols and scala-xml dependency.

from scalatags.

Peluko avatar Peluko commented on July 17, 2024

Hello again. Now that it is fresh in my head, I've done the change to get rid of the symbols and scala-xml. Take a look at https://github.com/Peluko/scalatags/commit/ca313094193d27376c0e12e3ff060021a21010af
By now it uses regular String for the 'serialization' to html, just for simplicity. For big pages it can be a performance bottleneck, so it should be updated to use StringBuilder instead.

from scalatags.

lihaoyi avatar lihaoyi commented on July 17, 2024

Closed by 08f6bdc

from scalatags.

Related Issues (20)

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.